package com.ruoyi.sys.vehile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sys.vehile.mapper.TbTemporaryPaymentMapper;
import com.ruoyi.sys.vehile.domain.TbTemporaryPayment;
import com.ruoyi.sys.vehile.service.ITbTemporaryPaymentService;

/**
 * 临停缴费Service业务层处理
 *
 * @author ruoyi
 * @date 2022-05-24
 */
@Service
public class TbTemporaryPaymentServiceImpl implements ITbTemporaryPaymentService
{
    @Autowired
    private TbTemporaryPaymentMapper tbTemporaryPaymentMapper;

    /**
     * 查询临停缴费
     *
     * @param tpId 临停缴费主键
     * @return 临停缴费
     */
    @Override
    public TbTemporaryPayment selectTbTemporaryPaymentByTpId(Long tpId)
    {
        return tbTemporaryPaymentMapper.selectTbTemporaryPaymentByTpId(tpId);
    }

    /**
     * 查询临停缴费列表
     *
     * @param tbTemporaryPayment 临停缴费
     * @return 临停缴费
     */
    @Override
    public List<TbTemporaryPayment> selectTbTemporaryPaymentList(TbTemporaryPayment tbTemporaryPayment)
    {
        return tbTemporaryPaymentMapper.selectTbTemporaryPaymentList(tbTemporaryPayment);
    }

    /**
     * 新增临停缴费
     *
     * @param tbTemporaryPayment 临停缴费
     * @return 结果
     */
    @Override
    public int insertTbTemporaryPayment(TbTemporaryPayment tbTemporaryPayment)
    {
        return tbTemporaryPaymentMapper.insertTbTemporaryPayment(tbTemporaryPayment);
    }

    /**
     * 修改临停缴费
     *
     * @param tbTemporaryPayment 临停缴费
     * @return 结果
     */
    @Override
    public int updateTbTemporaryPayment(TbTemporaryPayment tbTemporaryPayment)
    {
        return tbTemporaryPaymentMapper.updateTbTemporaryPayment(tbTemporaryPayment);
    }

    /**
     * 批量删除临停缴费
     *
     * @param tpIds 需要删除的临停缴费主键
     * @return 结果
     */
    @Override
    public int deleteTbTemporaryPaymentByTpIds(Long[] tpIds)
    {
        return tbTemporaryPaymentMapper.deleteTbTemporaryPaymentByTpIds(tpIds);
    }

    /**
     * 删除临停缴费信息
     *
     * @param tpId 临停缴费主键
     * @return 结果
     */
    @Override
    public int deleteTbTemporaryPaymentByTpId(Long tpId)
    {
        return tbTemporaryPaymentMapper.deleteTbTemporaryPaymentByTpId(tpId);
    }
}
